Skip to content

created#2

Open
Sla-als wants to merge 1 commit intomasterfrom
lesson03
Open

created#2
Sla-als wants to merge 1 commit intomasterfrom
lesson03

Conversation

@Sla-als
Copy link
Copy Markdown
Owner

@Sla-als Sla-als commented Apr 2, 2020

No description provided.

};
//Найти и вывести список уникальных слов,
//из которых состоит массив (дубликаты не считаем)
SortedSet<String> unique = new TreeSet<>(Arrays.asList(words));// sorted
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Для типа переменной достаточно просто Set. Для реализации подойдет обычный HasSet. Сортировать ни к чему.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants